Skip to content

jwt: fix signing issue when using bun runtime (fixes #462) #585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

richardhenry
Copy link

@richardhenry richardhenry commented May 9, 2025

Fixes #462

This change is modeled after the Deno jwt shim which is similar. It might also make sense to just apply these changes to the jwt-node shim since they should be safe for either Bun or Node, but making this specific to Bun seems like a reasonable way to fix this for now.

I verified this fix manually for my use case, but we should probably add tests for Bun to make sure that this doesn't break in the future.

@krzkz94
Copy link

krzkz94 commented Aug 4, 2025

Any updates on this? @jsanford8 @JacquiManzi

We're experiencing the same issue internally - everything works on our API but the signing part. Submitted a ticket as well, looking forward for a new release with the included fix :)

@jsanford8
Copy link
Collaborator

Hey @krzkz94 - sorry about the delay here!

Could you add the specific changes to the base one, as well, so I can see the difference? As you say, if this is safe for node, I'd rather get this in to the core, but due to how this is built I'll need to merge this into a different branch first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError occurs when using JWT Helpers with Bun
3 participants